package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_OperLog", catalog="Id")
public class YsOperLog extends BaseEntity<YsOperLog> {

	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="int")
	private Integer id;
	@YsField(nameDataBase="BusinessType", nameJava="businessType", typeDataBase="int")
	private Integer businessType;
	@YsField(nameDataBase="SourceType", nameJava="sourceType", typeDataBase="int")
	private Integer sourceType;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;
	@YsField(nameDataBase="OperUserId", nameJava="operUserId", typeDataBase="varchar")
	private String operUserId;
	@YsField(nameDataBase="OperUrl", nameJava="operUrl", typeDataBase="varchar")
	private String operUrl;
	@YsField(nameDataBase="OperIp", nameJava="operIp", typeDataBase="varchar")
	private String operIp;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="nvarchar")
	private String name;
	@YsField(nameDataBase="ParamInfo", nameJava="paramInfo", typeDataBase="nvarchar")
	private String paramInfo;
	@YsField(nameDataBase="ResultInfo", nameJava="resultInfo", typeDataBase="nvarchar")
	private String resultInfo;

	public Integer getStatus() {
		return status;
	}
	public YsOperLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Integer getId() {
		return id;
	}
	public YsOperLog setId(Integer id) {
		this.id = id;
		return this;
	}
	public Integer getBusinessType() {
		return businessType;
	}
	public YsOperLog setBusinessType(Integer businessType) {
		this.businessType = businessType;
		return this;
	}
	public Integer getSourceType() {
		return sourceType;
	}
	public YsOperLog setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsOperLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsOperLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}
	public String getOperUserId() {
		return operUserId;
	}
	public YsOperLog setOperUserId(String operUserId) {
		this.operUserId = operUserId;
		return this;
	}
	public String getOperUrl() {
		return operUrl;
	}
	public YsOperLog setOperUrl(String operUrl) {
		this.operUrl = operUrl;
		return this;
	}
	public String getOperIp() {
		return operIp;
	}
	public YsOperLog setOperIp(String operIp) {
		this.operIp = operIp;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsOperLog setName(String name) {
		this.name = name;
		return this;
	}
	public String getParamInfo() {
		return paramInfo;
	}
	public YsOperLog setParamInfo(String paramInfo) {
		this.paramInfo = paramInfo;
		return this;
	}
	public String getResultInfo() {
		return resultInfo;
	}
	public YsOperLog setResultInfo(String resultInfo) {
		this.resultInfo = resultInfo;
		return this;
	}

	public static YsOperLog ysOperLog(
		Integer businessType,
		Integer sourceType,
		String operUserId,
		String operUrl,
		String operIp,
		String name,
		String paramInfo,
		String resultInfo,
		Integer status
			) {
		YsOperLog entity = new YsOperLog();
		entity.setStatus(status);
		entity.setBusinessType(businessType);
		entity.setSourceType(sourceType);
		entity.setOperUserId(operUserId);
		entity.setOperUrl(operUrl);
		entity.setOperIp(operIp);
		entity.setName(name);
		entity.setParamInfo(paramInfo);
		entity.setResultInfo(resultInfo);
		return entity;
	}
}